package cn.sdc.bugKiller.util;

import cn.sdc.bugKiller.bean.MemberBean;
import cn.sdc.bugKiller.service.ContextService;
import cn.sdc.bugKiller.service.LoginService;

public class SecurityUtil {

	private static LoginService service = new LoginService();
	
	public static boolean isLogon(){
		return null != getCurrentUser();
	}
	
	public static MemberBean getCurrentUser(){
		return ContextService.getCurrentUser();
	}
	
	public static void setCurrentUser(MemberBean bean){
		ContextService.setCurrentUser(bean);
	}
	
	
}
